//=============================================================================
// PepperPotAttachment
//=============================================================================
class PepperPotAttachment extends xWeaponAttachment;

var byte OldSpawnHitCount;

function UpdateHit(Actor HitActor, vector HitLocation, vector HitNormal)
{
	SpawnHitCount++;
	mHitLocation = HitLocation;
	mHitActor = HitActor;
	mHitNormal = HitNormal;

	if(Level.NetMode != NM_DedicatedServer)
		SpawnHitEffects();
}

simulated function PostNetReceive()
{
	if(OldSpawnHitCount != SpawnHitCount)
	{
		OldSpawnHitCount = SpawnHitCount;
		SpawnHitEffects();
	}

	Super.PostNetReceive();
}

simulated function SpawnHitEffects()
{
	GetHitInfo();

	if(mHitActor != None)
		Spawn(class'WoEHitEffect',,, mHitLocation, rotator(mHitLocation - (Instigator.Location + Instigator.EyePosition())));
}

defaultproperties
{
     bHeavy=True
     Mesh=SkeletalMesh'TFSentinelA.PepperPot1st'
     RelativeRotation=(Pitch=32768)
     DrawScale=0.300000
     bNetNotify=True
}
